home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 552 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: in2.uu.net!panix!dturner
  2. From: dturner@panix.com (Doug Turner)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Exceptions vs. assertions
  5. Date: Fri, 05 Jan 96 04:22:02 GMT
  6. Organization: PANIX Public Access Internet and Unix, NYC
  7. Message-ID: <4ci8v6$99n@news1.panix.com>
  8. References: <4cbfac$kst@dawn.mmm.com> <DKMJsE.LH5@falcon.daytonoh.attgis.com>
  9. NNTP-Posting-Host: dturner.dialup.access.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #3
  11.  
  12. In article <DKMJsE.LH5@falcon.daytonoh.attgis.com>,
  13.    Dick Menninger <Dick.Menninger@DaytonOH.ATTGIS.COM> wrote:
  14. >
  15. >> ==========Kevin J Hopps, 1/2/96==========
  16. >> Chris Page (page@tiac.net) wrote:
  17. >> > lalit@gramercy.ios.com (lalit gidwani) wrote:
  18. >
  19. >[stuff deleted]
  20. >
  21. >> > is this: If I expect a condition to occur during normal operation of
  22. >> > my program, then I do not use exceptions for it.  I use exceptions,
  23. >> > only for exceptionally conditions, which I do not expect to
  24. >occur, but
  25. >> > I have to anticipate.
  26. >> 
  27. >> This is a good approach.  The issue of whether to throw exceptions or
  28. >> return status values is best decided by how likely the failure is than
  29. >> by how catastrophic it is.  (Besides, the caller of a function knows
  30. >> better than the function itself how costly the failure is.)
  31. >
  32. >Exceptions are a control paradigm.  Would you choose any
  33. [deletia]
  34. Says who?  I say  "exceptions are an error handling paradigm...".
  35.  
  36. >Good Day
  37. >Dick
  38. >Dick.Menninger@DaytonOH.ATTGIS.COM
  39. >
  40.     
  41.